<template>
  <el-row>
    <el-col :span="22" :offset="1">

      <!--卡片shart-->
      <el-card class="box-card" style="padding: 0 15px;">

        <!--标签页-->
        <el-tabs type="card" v-model="activeName" style="line-height: 40px;">
          <el-tab-pane label="el-tab-pane1-child1" name="first" :key="'first'">
            <child1></child1>
          </el-tab-pane>

          <el-tab-pane label="el-tab-pane2-child2" name="second" :key="'second'">
            <child2></child2>
          </el-tab-pane>

          <el-tab-pane label="el-tab-pane3-child3" name="third" :key="'third'">
            <child3></child3>
          </el-tab-pane>
        </el-tabs>

      </el-card>
      <!--卡片end-->

    </el-col>
  </el-row>
</template>

<script>
  import axios from 'axios'
  import child1 from './demo1';
  import child2 from './demo2';
  import child3 from './demo3';
  export default {
    name: "demoPage",
    components:{
      child1:child1,
      child2:child2,
      child3:child3
    },
    data() {
      return {
        //默认第一个选项卡
        activeName: "first",
      }
    },
    methods: {
    },
    mounted(){
    }
  }
</script>

<style scoped>

</style>
